<template>
	<div>
        <headerTop v-bind:headTitle='title'></headerTop>  
	</div>
</template>

<script>
    import headerTop from 'components/common/header.vue'
    export default {
    	data(){
            return{
            	msg:'这是win',
            	title:''
            }
        },
        components:{
        	headerTop
        },
        mounted(){
        	this.init()
        },
        computed: {

        },
        methods: {
        	init(){
        		var data = api.pageParam;
				var url = data.url;
				// var headerHeight = document.getElementsByTagName('header')[0].offsetHeight;
				this.title = data.title;
				api.openFrame({
				    name: 'win',
				    url: url,
				    rect: {
				        x: 0,
				        y: 50,
				        w: 'auto',
				        h: 'auto'
				    },
					bounces: false,
					scaleEnabled:true,
      				allowEdit:true,
				    bgColor: 'rgba(0,0,0,0)'
				});
        	}
        },

    }

</script>

<style lang="scss" scoped>

</style>
